//
//  StrategyPhotosParser.m
//  ITrip
//
//  Created by dllo on 15/5/30.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "StrategyPhotosParser.h"

@implementation StrategyPhotosParser

- (void)dealloc
{
    [self.strategy_description2 release];
    [self.strategy_image_url release];
    [super dealloc];
}

- (instancetype)init:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.strategy_image_url = dic[@"image_url"];
        if (dic[@"image_height"] != nil && ![dic[@"image_height"] isEqual:[NSNull null]] && dic[@"image_width"] != nil && ![dic[@"image_width"] isEqual:[NSNull null]]) {
            self.strategy_image_height = [dic[@"image_height"] integerValue];
            self.strategy_image_width = [dic[@"image_width"] integerValue];
        }
        self.strategy_description2 = dic[@"description"];
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@""]) {
        
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}


@end
